package com.dapeis.api.controller.collocation;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.gson.JsonElement;

/**
 * 搭配师登录 Title:ICollocationLoginCotroller.java ICollocationLoginCotroller
 * Description:
 * 
 * @author yuanyong
 * @date 2017年4月20日 下午4:21:43 Email: hzyuanyong@126.com
 *
 */
public interface ILoginCotroller {

    /**
     * 用户登陆
     * 
     * @param contact
     * @param verifyCode
     * @param request
     * @return
     */
    @RequestMapping(value = "/login", method = RequestMethod.POST)
    @ResponseBody
    JsonElement login(@RequestParam String contact,
	    @RequestParam String verifyCode, @RequestHeader String deviceId,
	    HttpServletRequest request);

    /**
     * 用户退出
     * 
     * @param request
     * @return
     */
    @RequestMapping("/logout")
    @ResponseBody
    JsonElement logout(HttpServletRequest request);
}
